package com.example.demo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.demo.entity.userTest;
import com.example.demo.service.userTestService;
import com.example.demo.userTestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 高俊
 * @create 2021-07-2021/7/20-18:50
 */
@Service
public class userTestServiceImpl implements userTestService {
    @Autowired
    private userTestMapper userTestMapper;
    @Override
    public List<userTest> select() {
        QueryWrapper<userTest> wrapper = new QueryWrapper<>();
        wrapper.select("id","username","version");
        List<userTest> userTests = userTestMapper.selectList(wrapper);
        return userTests;
    }

    @Override
    public userTest selectOne() {
        userTest userTest = userTestMapper.selectOne();
        return userTest;
    }


}
